#ifndef CLIENTSOCKETRECEIVER_H
#define CLIENTSOCKETRECEIVER_H

#include "Socket.h"
#include "Mensaje.h"
#include "InterfaceDeComunicacion.h"
#include "Mutex.h"
#include <string>

class ClientSocketReceiver: public Socket, public Thread {
    Mutex *sincronizadorTareas;
    bool *finalizoTarea;
    InterfaceDeComunicacion *juego;

  public:
    explicit ClientSocketReceiver(Mutex *, InterfaceDeComunicacion *, bool *);
    virtual ~ClientSocketReceiver();
    void *run();
  protected:
  private:
    char buffer[TAMANIO_MAXIMO_MENSAJE];
};

#endif // CLIENTSOCKET_H
